package main

import (
	"gin_blog/apps/middleware"
	_ "gin_blog/apps/middleware"
	"gin_blog/model"
	_ "gin_blog/model"
	"gin_blog/routers"
	"github.com/gin-gonic/gin"
)

func main(){
	router := gin.Default()
	router.Use(middleware.CORS(middleware.Options{Origin: "*"}))
	model.MigRate()
	routers.RootRouter(router)
	router.Run(":8000")
}
